<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>主页</title>
</head>
<body>

</body>
<script>
  apiready = function(){
    api.setStatusBarStyle({
        style: 'light'
    });
    alert(api.winHeight)
    api.openFrame({
        name: 'index',
        // url: 'dist/index.html', //上传打包时使用
        // url: 'dist2/html/index.html', //上传打包时使用
        url: 'http://192.168.20.12:9000/index.html', //公司调试时使用
        // url: 'http://192.168.31.234:9000/index.html', //家里调试时使用
        // url: 'http://192.168.31.234:8010/html/frame0.html', //家里调试时使用
        rect: {
            x: 0,
            y: 45,
            w: 'auto',
            h: api.winHeight-95
        },
        bounces: false,
        vScrollBarEnabled: true,
        hScrollBarEnabled: true
    });
    alert(location.href)
  }
</script>
</html>
